package com.cxria.dubo.consumer;

import com.cxria.dubo.consumer.service.AnnotationConsumeService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class InitHandler implements InitializingBean {

    @Autowired
    private AnnotationConsumeService annotationConsumeService;

    @Override
    public void afterPropertiesSet() throws Exception {
        String msg = annotationConsumeService.sayHello("world");
        System.out.println(msg);
    }

}
